package com.itbbs.exception;

import com.itbbs.result.ResultCodeEnum;

/**
 * @author ysk
 * @version 1.0.1
 * @Description 用户的异常处理
 * @createTime 2021年06月15日 13:00:00
 */
public class CustomizeException extends RuntimeException{

    static final long serialVersionUID = -703489715866939L;

    private ResultCodeEnum resultCodeEnum;

    public ResultCodeEnum getResultCodeEnum() {
        return resultCodeEnum;
    }

    /**
     * 接收枚举类型对象
     */
    public CustomizeException(ResultCodeEnum resultCodeEnum) {
        this.resultCodeEnum = resultCodeEnum;
    }

    public CustomizeException(){
        super();
    }
}
